/*
*分支结构
* 1.if语句基本结构
*     if（条件） 子句
*     if（条件） 子句 else 子句2
*     *子句只能是一条语句，若多条语句要作为子句，则用复合语句
 */


import java.util.Scanner;

/*public class Main {
  static  void eg1(){
                int a=1,b=2,t=10;
                if(a>b)
                {t=a;a=b;b=t;}
           System.out.println(a+" "+b+" "+t);
        }
    public static void main(String[] args) {
        eg1();
    }
}*/
public class Main {
    static  void eg2(){
        Scanner in=new Scanner(System.in);
        System.out.println("请输入一个成绩：");
        int s=in.nextInt();
        String jg;
        if(s>=60)
            if(s>=80)
                if(s>=90) jg="优秀";
                else jg="良好";
            else jg="合格";
        else jg="不合格";
        System.out.println(jg);
    }
/*static  void eg3() {
        Scanner in = new Scanner(System.in);
        System.out.println("请输入一个成绩：");
        int s = in.nextInt();
        String jg;
        if (s >= 80)
            if (s >= 90) jg = "优秀";
            else jg = "良好";
        else if (s >= 60) jg = "合格";
        else jg = "不合格";
        System.out.println(jg);
    }*/
    /*static  void eg5(){
        Scanner in=new Scanner(System.in);
        System.out.println("请输入一个成绩：");
        int s=in.nextInt();
        String jg;
        switch (s/10){
            case 10:
            case 9:jg="优秀";break;
            case 8:jg="良好";break;
            case 7:
            case 6:jg="合格"; break;
            default:jg="不合格";
                System.out.println(jg);
        }
        }*/



    public static void main(String[] args) {
        //eg1();
    eg2();
        //eg3();
        //eg5();



    }
}

